const connection = require('../../db/index')
const express = require("express");
const putnum = express.Router();
//修改库存
putnum.get('/putnum',(req,res) => {
    connection.query('select * from jisuanji where Id = '+req.query[0]+'', function(err, rows, fields) {
        if (err) {
            throw err
        }
        res.send({
            rows,
            status:200
        })
    })
})


module.exports = putnum